package ch.exm.storm.conditions.arguments;

public class ConstantEvaluatedArgument implements EvaluatedArgument {

	private Object constantValue;
	
	public ConstantEvaluatedArgument(Object constantValue) {
		this.constantValue = constantValue;
	}

	public String getEvaluatedPart() {
		return constantValue instanceof String ? "'" + constantValue + "'" : constantValue.toString();
	}

	public boolean isFullyEvaluated() {
		return true;
	}
	
	public Argument getSourceArgument() {
		return null;
	}
	
	public Object evaluateNonRelationalPart(Object object) {
		return object;
	}
}
